package headfirst.designpatterns.observer.simpleobservable;

public class Example {

    public static void main(String[] args) {
        SimpleSubject simpleSubject = new SimpleSubject();

        SimpleObserver simpleObserver = new SimpleObserver(simpleSubject);
        SimpleObserver simpleObserver1 = new SimpleObserver(simpleSubject);

        simpleSubject.changeValue(80);

        simpleSubject.deleteObserver(simpleObserver1);

        simpleSubject.changeValue(81);
    }

}
